package com.aaa.service.impl;

import com.aaa.dao.NewsDao;
import com.aaa.entity.News;
import com.aaa.service.NewsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsSerivceImpl extends ServiceImpl<NewsDao, News> implements NewsService {
    @Autowired
    private NewsDao newsDao;
    @Override
    public List<News> selectListByTime(String searchStartTime, String searchEndTime){
        List<News> newsList = newsDao.selectListByTime(searchStartTime, searchEndTime);
        return newsList;
    }

}
